package com.ruoyi.finance.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 提成扩展对象 t_commission_extend
 *
 * @author admin
 * @date 2023-10-18
 */
public class CommissionExtend extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    private Long id;

    /**
     * 提成类型(0=线下,1=品牌,2=商城,3=助理)
     */
    @Excel(name = "提成类型(0=线下,1=品牌,2=商城,3=助理)")
    private Integer type;

    /**
     * 销售员编码
     */
    @Excel(name = "销售员编码")
    private String salesNo;

    /**
     * 销售员
     */
    @Excel(name = "销售员")
    private String salesName;

    /**
     * 组织编码
     */
    @Excel(name = "组织编码")
    private String orgCode;

    /**
     * 客户代码
     */
    @Excel(name = "客户代码")
    private String customerNo;

    /**
     * 损失金额
     */
    @Excel(name = "损失金额")
    private BigDecimal lossPrice;

    /**
     * 年月
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "年月", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commissionDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setSalesNo(String salesNo) {
        this.salesNo = salesNo;
    }

    public String getSalesNo() {
        return salesNo;
    }

    public void setSalesName(String salesName) {
        this.salesName = salesName;
    }

    public String getSalesName() {
        return salesName;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setCustomerNo(String customerNo) {
        this.customerNo = customerNo;
    }

    public String getCustomerNo() {
        return customerNo;
    }

    public void setLossPrice(BigDecimal lossPrice) {
        this.lossPrice = lossPrice;
    }

    public BigDecimal getLossPrice() {
        return lossPrice;
    }

    public void setCommissionDate(Date commissionDate) {
        this.commissionDate = commissionDate;
    }

    public Date getCommissionDate() {
        return commissionDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("salesNo", getSalesNo())
                .append("salesName", getSalesName())
                .append("orgCode", getOrgCode())
                .append("customerNo", getCustomerNo())
                .append("lossPrice", getLossPrice())
                .append("commissionDate", getCommissionDate())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
